using System;
using System.Collections.Generic;
using System.Text;
using Microsoft.SharePoint;

namespace LenninSoftware.FormEditor
{
    public class FieldToRender
    {
        private readonly FieldInfo _field;
        private bool _isVisible;
        private bool _isWriteable;

        public FieldToRender(FieldInfo field, bool isVisible, bool isWriteable)
        {
            _field = field;
            _isVisible = isVisible;
            _isWriteable = isWriteable;
        }

        public bool IsVisible
        {
            get { return _isVisible; }
            set { _isVisible = value; }
        }

        public bool IsWriteable
        {
            get { return _isWriteable; }
            set { _isWriteable = value; }
        }

        public FieldInfo Field
        {
            get { return _field; }
        }
    }

}
